﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_ProductComment.aspx.cs" Inherits="V5_EShop.Admin.Product.Admin_ProductComment" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>无标题页</title>
    <%=V5.Load.LoadAdminHeader(this) %>
</head>
<body>
    <table border="0" cellpadding="0" cellspacing="0" class="tablelist">
        <tr>
            <td class="header">
                商品评论管理
            </td>
        </tr>
        <tr>
            <td>
                <a href="Admin_ProductComment.aspx">管理商品</a>
            </td>
        </tr>
    </table>
    <form id="form1" runat="server">
    <asp:MultiView ID="MultiViewList" runat="server">
        <asp:View ID="View1" runat="server">
            <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False" GridLines="None"
                CssClass="tablelist rowlist overlist" OnRowCommand="gvList_RowCommand">
                <Columns>
                    <asp:TemplateField HeaderText="选择">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkitem" runat="server" />
                        </ItemTemplate>
                        <HeaderStyle CssClass="headertext" />
                        <ItemStyle Width="30px" />
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="ID" DataField="ID">
                        <HeaderStyle CssClass="headertext" />
                    </asp:BoundField>
                    <asp:BoundField DataField="ProductName" HeaderText="产品名称">
                        <HeaderStyle CssClass="headertext" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="内容">
                        <ItemTemplate>
                            <%# Eval("CommentContent")%>
                            <%# Eval("ReplyComment").ToString()!=""?"<br/>管理员回复:"+Eval("ReplyComment"):""%>
                        </ItemTemplate>
                        <HeaderStyle CssClass="headertext" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Bind("ID") %>'
                                CommandName="reply">回复</asp:LinkButton>
                            <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%# Bind("ID") %>'
                                CommandName="del" OnClientClick="return confirm('你确定要删除吗?')">删除</asp:LinkButton>
                        </ItemTemplate>
                        <HeaderStyle CssClass="headertext" />
                        <ItemStyle Width="150px" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <table border="0" cellpadding="0" cellspacing="0" class="tablelist">
                <tr>
                    <td>
                        <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条"
                            FirstPageText="首页" HorizontalAlign="Right" LastPageText="尾页" NextPageText="下一页"
                            OnPageChanged="Pager_PageChanged" PageIndexBoxType="DropDownList" PageSize="20"
                            PrevPageText="上一页" ShowCustomInfoSection="Left" ShowPageIndexBox="Always" SubmitButtonText="Go"
                            TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到">
                        </webdiyer:AspNetPager>
                    </td>
                </tr>
            </table>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <table cellpadding="0" cellspacing="0" class="tablelist">
                <tr>
                    <td class="header" colspan="2">
                        回复品论
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">
                        商品名称
                    </td>
                    <td>
                        <asp:Label ID="lbl1" runat="server" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        姓名
                    </td>
                    <td>
                        <asp:Label ID="lbl2" runat="server" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        Email
                    </td>
                    <td>
                        <asp:Label ID="lbl3" runat="server" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        评价
                    </td>
                    <td>
                        <asp:Label ID="lbl4" runat="server" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        内容
                    </td>
                    <td>
                        <asp:Label ID="lbl5" runat="server" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        回复内容
                    </td>
                    <td>
                        <asp:TextBox ID="txtReplyComment" runat="server" Height="179px" Width="485px" Text=''
                            TextMode="MultiLine"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        是否通过
                    </td>
                    <td>
                        <asp:CheckBox ID="chkPassed" runat="server" Text="通过" />
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <asp:HiddenField ID="hfID" runat="server" Value="0" />
                        <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="回复评论" />
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
    </form>
</body>
</html>
